app.controller('appListCtrl', ['$rootScope', '$scope', 'httpLoad', '$modal', '$stateParams', '$state',function ($rootScope, $scope, httpLoad, $modal, $stateParams, $state) {
    $scope.param = {
        page: 1,
        rows: 10
    };
    //获取
    $scope.getData = function (page) {
        $scope.showDetail = false;
        $scope.param.page = page || $scope.param.page;
        httpLoad.loadData({
            url: '/shop/list',
            data: $scope.param,
            noParam: true,
            success: function (data) {
                if (data.success) {
                    $scope.shopList = data.rows;
                    $scope.totalCount = data.total;
                    if(data.rows.length==0) $scope.isImageData = true;
                    else $scope.isImageData = false;
                }else{
                    $scope.isImageData = true;
                }
            }
        });
    };
}])